{template header}
<div class="midder">
<div class="mc">

<div class="cleft">
<div class=" bbox">
<h2>最新活跃会员</h2>
<div class="bc indent obssin">
{loop $arrHotUser $key $item}
<dl class="ob">
<dt><a href="{tsUrl('user','space',array('id'=>$item[userid]))}"><img alt="{$item[username]}" class="m_sub_img" src="{$item[face]}" width="48" /></a></dt>
<dd><a href="{tsUrl('user','space',array('id'=>$item[userid]))}">{$item[username]}</a>
</dd>
</dl>
{/loop}
</div>


<h2>社区标签</h2>
<div class="bc tags">
{loop $arrTag $key $item}
<a rel="tag" href="{tsUrl('group','tag',array('id'=>urlencode($item[tagname])))}">{$item[tagname]}</a>
{/loop}
</div>


<h2>推荐小组</h2>
<div class="bc indent obssin">
{if $arrRecommendGroup}
{loop $arrRecommendGroup $key $item}
<dl class="ob">
<dt><a href="{tsUrl('group','show',array('id'=>$item[groupid]))}"><img alt="{$item[groupname]}" class="m_sub_img" src="{$item[icon_48]}" width="48" /></a></dt>
<dd><a href="{tsUrl('group','show',array('id'=>$item[groupid]))}">{$item[groupname]}</a> <span>({$item[count_user]}{if $item[uptime]>strtotime(date('Y-m-d 00:00:00'))}/<font color="orange">{$item[count_topic_today]}</font>{else}{/if})</span>
</dd>
</dl>

{/loop}
{/if}

<div class="clear"></div>
<div style="text-align:right;"><a href="{tsUrl('group')}">全部小组</a></div>

</div>

<h2>最新回应帖子</h2>
<div class="bc topic_list">
<ul>
{if $arrTopic}
{loop $arrTopic $key $item}
<li>
<div class="userimg"><a href="{tsUrl('user','space',array('id'=>$item[user][userid]))}"><img src="{$item[user][face]}" width="32"></a></div>

<div class="topic_title">
<div class="title">

{if $item['appkey'] != 'group' && $item['appkey']!=''}
<a target="_blank" style="color:#999999;font-size: 12px;margin-right: 5px;" class="titles-type" href="{SITE_URL}{php echo tsUrl($item['appkey'])}">[{$item['appname']}]</a>
<a title="{$item[title]}" href="{SITE_URL}{php echo tsUrl($item['appkey'],$item['appaction'],array('id'=>$item['appid']))}">{$item[title]}</a>
{else}
<a title="{$item[title]}" href="{tsUrl('group','topic',array('id'=>$item[topicid]))}">{$item[title]}</a>
{/if}

{if $item[istop]=='1'}<img src="{SITE_URL}app/{$app}/skins/{$skin}/headtopic_1.gif" title="[置顶]" alt="[置顶]" />
{/if}

{if $item['postby']==1}<a href="{tsUrl('home','phone')}"><img align="absmiddle" alt="通过Iphone手机端发布" title="通过Iphone手机端发布" src="{SITE_URL}public/images/ios.jpg" /></a>{/if}

</div>
<div class="topic_info">
<span style="float:left;">
<a href="{tsUrl('group','show',array('id'=>$item[groupid]))}">{$item[group][groupname]}</a>
</span>

<span style="float:right;">
{php echo getTime($item[uptime],time())}

<a href="{tsUrl('user','space',array('id'=>$item[userid]))}">{$item[user][username]}</a>

{if $item[count_comment]>0}<a class="rank" style="color:#FFFFFF;" href="{tsUrl('group','topic',array('id'=>$item[topicid]))}">{$item[count_comment]}</a>{/if}
</span>
</div>
</div>
</li>	
{/loop}
{/if}
</ul>
</div>
</div>
</div>


<div class="cright">
<div class="bbox">
<h2>最新加入会员</h2>
<div class="bc indent obssin">
{loop $arrNewUser $key $item}
<dl class="ob">
<dt><a href="{tsUrl('user','space',array('id'=>$item[userid]))}"><img alt="{$item[username]}" class="m_sub_img" src="{$item[face]}" width="48" /></a></dt>
<dd><a href="{tsUrl('user','space',array('id'=>$item[userid]))}">{$item[username]}</a>
</dd>
</dl>
{/loop}
</div>
</div>

<div class="bbox">
<h2>最新成立小组</h2>
<div class="bc line23">
{if $arrNewGroup}
{loop $arrNewGroup $key $item}
<a href="{tsUrl('group','show',array('id'=>$item[groupid]))}">{$item[groupname]}</a> ({$item[count_user]}{if $item[uptime]>strtotime(date('Y-m-d 00:00:00'))}/<font color="orange">{$item[count_topic_today]}</font>{else}{/if})<br>
{/loop}
{/if}
</div>
</div>

<div class="bbox">
<h2>社区精华帖</h2>
<div class="bc line23">
<ul>
{loop $arrPosts $key $item}
<li><a href="{tsUrl('group','topic',array('id'=>$item[topicid]))}">{$item[title]}</a></li>
{/loop}
</ul>
</div>
</div>

<!--广告位-->
{php doAction('gobad','300')}
</div>




</div>
</div>
{template footer}